#pragma once

#include "Widget.h"

namespace ShRp
{
	namespace UI
	{
		namespace Widgets
		{
			class Label : public Widget
			{
			public:
			public:
				bool Init(int2 _Pos, int2 _Size, std::string _Text);
				void Paint();

				void MouseMove();
				void MouseDown( MouseButton::E btn );
				void MouseUp( MouseButton::E btn );

				void SetText(std::string _Text);
				std::string GetText()	const;
			protected:
				// Only the WidgetFactory can access the constructor.
				friend class ShRp::UI::WidgetFactory;
				Label(Control* _Parent);

				std::string m_Text;
			};
		};
	};
};